﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

/// <summary>
///ComDataHelper 的摘要说明
/// </summary>
public static class ComDataHelper
{
    /// <summary>
    /// 根据父ID取得栏目列表
    /// </summary>
    /// <param name="ID"></param>
    /// <returns></returns>
    public static List<KeMei.Model.Syslm> GetlmListByParentID(int ID)
    {
        return new KeMei.BLL.Syslm().GetModelList("ParentID=" + ID);
    }

    /// <summary>
    /// 读取SEO信息
    /// </summary>
    /// <returns></returns>
    public static string GetKeywordsById()
    {
        string keywords = string.Empty;
        KeMei.BLL.SysParameters bll = new KeMei.BLL.SysParameters();
        KeMei.Model.SysParameters info = bll.GetModel(4);
        if (info != null)
        {
            keywords = info.TValue;
        }
        return keywords;
    }

    /// <summary>
    /// 读取公司名称
    /// </summary>
    /// <returns></returns>
    public static string GetCompanyName()
    {
        string keywords = string.Empty;
        KeMei.BLL.SysParameters bll = new KeMei.BLL.SysParameters();
        KeMei.Model.SysParameters info = bll.GetModel(1);
        if (info != null)
        {
            keywords = info.TValue;
        }
        return keywords;
    }
}